package cn.edu.zhku.citrusmonitor.qa.dao;

import java.sql.SQLException;
import java.util.List;

import cn.edu.zhku.citrusmonitor.domain.TbAnswer;

public interface AnswerDao {

	public void addA(TbAnswer answer) throws SQLException;

	public int removeA(String answer) throws SQLException;

	public int modifyA(TbAnswer answer) throws SQLException;

	public List<TbAnswer> findAByWord(String content) throws SQLException;

	public TbAnswer showA(String questionId) throws SQLException;

	public int count(String content) throws SQLException;

	public String findExpertPasswordById(int expertId) throws SQLException;

	public List<TbAnswer> showAll(int currentPage, int pageSize) throws SQLException;

	public int delAll(String[] ids) throws SQLException;

}
